package com.kgc.scd.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * seckill
 * @author 
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SeckillResult implements Serializable {
    /**
     * 秒杀id
     */
    @ApiModelProperty(value = "秒杀id")
    private String seckillId;

    /**
     * 秒杀活动名
     */
    @ApiModelProperty(value = "秒杀活动名")
    private String seckillName;

    /**
     * 秒杀商品id
     */
    @ApiModelProperty(value = "秒杀商品id")
    private String seckillProid;

    /**
     * 秒杀商品名
     */
    @ApiModelProperty(value = "秒杀商品名")
    private String proName;

    /**
     * 秒杀商品图片地址
     */
    @ApiModelProperty(value = "秒杀商品图片地址")
    private String proPic;

    /**
     * 秒杀商品库存
     */
    @ApiModelProperty(value = "秒杀商品库存")
    private Integer seckillProstock;

    /**
     * 秒杀开始时间
     */
    @ApiModelProperty(value = "秒杀开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08:00")
    private Date seckillStarttime;

    /**
     * 秒杀结束时间
     */
    @ApiModelProperty(value = "秒杀结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
    private Date seckillEndtime;

    /**
     * 秒杀商品价格
     */
    @ApiModelProperty(value = "秒杀商品价格")
    private double seckillPrice;

    private static final long serialVersionUID = 1L;


}